package com.karlcool.aaes;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        String secret = "Per vallum duces Labant";

        AESHelper helper = new  AESHelper(secret);

        String decodeStr = helper.AESEncrypt("thisistest 很好很强大 哈哈 ，。、'；~！@￥%……&*asdfasdf");

        Log.e("Encrypt",decodeStr);

        String encodeStr = helper.AESDecrypt(decodeStr);

        Log.e("Decrypt",encodeStr);
    }
}
